package com.lyl.goods.respository;

import com.lyl.goods.pojo.ShoppingCart;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: Liyunlong
 * @Date: 2024/03/20/23:14
 * @Description:
 */
@Repository
public interface CartRepository extends JpaRepository<ShoppingCart, Long> {
    List<ShoppingCart> getByUserId(Integer userId);

    ShoppingCart getByProductId(Integer productId);
}
